package com.baidu.service;

import com.baidu.pojo.Assess;
import com.baidu.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface AssessService {
    public List<Assess> getAssessByEid(Integer eid);
    //  查询评论
    public List<Assess> getAssessByUid(Integer uid);
    //    修改评论
    public void updateAssessByAid(Assess assess);
    //    删除评论
    public void delAssessByAid(Integer aid);
    //    添加评论
    public void addAssess(Assess assess);
    //查询所有用户评论
    public List<Assess> getAllAssesss();

    //删除用户评论
    public void deleteAssess(Integer assess);
    public int count();
    public List<Assess> getByPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize);
    public Integer getAllAssessByUIdCount(Integer uid);
    public List<Assess> getAllAssessByUIdByPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize, @Param("uid")Integer uid);
}
